import { Component } from '@angular/core';
import { IonicPage } from 'ionic-angular';
import { LocalstorageProvider } from "../../providers/localstorage/localstorage";
import {Router} from "@angular/router";
import { NativePageTransitions } from '@ionic-native/native-page-transitions';
import { Tools } from '../../tools/tools';
import { Network } from '@ionic-native/network';

@IonicPage()
@Component({
  selector: 'page-personal',
  templateUrl: 'personal.html',
})
export class PersonalPage extends Tools{

  public title='个人资料';
  public personInfo:object;

  constructor(
    protected route:Router,
    private loc: LocalstorageProvider,
    protected nativePageTransitions: NativePageTransitions,
    protected network: Network
  ) {
    super(route, nativePageTransitions, network)
    //获取本地存储中的用户信息
    this.personInfo = this.loc.get('userinfo');
  }

  back(){
    this.goback()
  }

}
